package com.jingdianjichi.sunject.application.convert;

import com.jingdianjichi.subject.domain.entity.SubjectAnswerBo;
import com.jingdianjichi.sunject.application.dto.SubjectAnswerDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 答案实体类转换
 */
@Mapper
public interface SubjectAnswerDTOConverter {
    SubjectAnswerDTOConverter INSTANCE=Mappers.getMapper(SubjectAnswerDTOConverter.class);

    SubjectAnswerBo convertDtoToBo(SubjectAnswerDTO subjectAnswerDTO);

    List<SubjectAnswerBo> convertDtoListToBoList(List<SubjectAnswerDTO> subjectAnswerDTO);
}
